package utils 

import (
	"fmt"
	"strconv"
)

func Decimal(v float64, precision int) float64 {
	f, _ := strconv.ParseFloat(fmt.Sprintf("%.6f", v), precision)
	return f
}
